<!-- 预约记录 -->


<template>
  <appointmentItems :list="appointmentList"/>
</template>

<script setup>
import { ref } from 'vue'
import appointmentItems from "@/components/appointmentItems/index.vue"
// 预约记录数据
const appointmentList = ref([
  {
    type: '血压检查',
    status: '已完成',
    date: '2024-05-20',
    time: '上午 09:30',
    doctor: '李医生'
  },
  {
    type: '血糖复查',
    status: '待进行',
    date: '2024-05-25',
    time: '下午 15:00',
    doctor: '王医生'
  },
  {
    type: '年度体检',
    status: '已完成',
    date: '2024-05-01',
    time: '上午 08:00',
    doctor: '张医生'
  }
])
</script>

<style scoped>
.appointment-page {
  min-height: 100vh;
  padding: 20rpx;
}

/* 预约记录列表 */
.appointment-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

/* 单条预约记录项 */
.appointment-item {
  background-color: #fff;
  border-radius: 15rpx;
  padding: 25rpx;
  box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05);
}

/* 项目和状态行 */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
  padding-bottom: 15rpx;
  border-bottom: 2rpx solid #f5f5f5;
}

/* 预约项目 */
.appointment-type {
  font-size: 34rpx;
  font-weight: 600;
  color: #333;
}

/* 预约状态 */
.appointment-status {
  font-size: 28rpx;
  padding: 5rpx 15rpx;
  border-radius: 20rpx;
}
/* 状态样式区分 */
.completed {
  background-color: #e6f7ef;
  color: #2A9D54;
}
.pending {
  background-color: #fff7e6;
  color: #E6A23C;
}

/* 详情行 */
.item-details {
  padding-top: 10rpx;
}
.detail-row {
  display: flex;
  margin-bottom: 15rpx;
}
.detail-row:last-child {
  margin-bottom: 0;
}

/* 详情标签和值 */
.detail-label {
  font-size: 30rpx;
  color: #666;
  min-width: 120rpx;
}
.detail-value {
  font-size: 30rpx;
  color: #333;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 200rpx;
}
.empty-text {
  font-size: 32rpx;
  color: #999;
  margin-top: 30rpx;
}
</style>